<?php

/**
 * @author edson
 * @copyright 2011
 */

$qu_city="select* from city";
$qu_of="select*from oficinas";

$table=CModelo::getInstance()->getData($qu_city);
$campos=array("nombre"=>"Nombre","apellido"=>"Apellido","email"=>"Direccion-mail","password"=>"Password");
$table2=CModelo::getInstance()->getData($qu_of);
echo "probando cambios en svn "
//var_dump($table);
//------------------menu,reg/istro-----------------------------
?>
<div id="register-box">  <!--empieza register-box-->
<h2>REGISTRO</h2>
<form action="#" method="post" name="form_register">

<p>
<?php
foreach($campos as $id=>$valor)
{
    echo "<label>".$valor."<input type='text' name='$valor' class='general-textarea'>"."</label>";
}
?>

<label>"Ciudad"
<select>
<?php
foreach($table as $row =>$colum)
  {
        $tabla=$colum;
        //echo $tabla['idCit'];
        echo "<option value=".$tabla['idCit'].">".$tabla['NamCit']."</option>\n";    
        }  
?>
</select>
</label>
<label>"Oficina"
<select>
<?php
foreach($table2 as $row =>$colum)
  {
        $tabla=$colum;
        //echo $tabla['idCit'];
        echo "<option value=".$tabla['idOfi'].">".$tabla['DirOfi']."</option>\n";    
        }
?>
</select>
</label>
<label>"Fecha de nacimiento"</label>
</p>
</form>

<h2>PRIVILEGIOS</h2>
<form method="post" action="#" name="priv">
<p>  


</p>  
</form>     



</div><!--acaba register-box-->


